package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.NSysStation;
import com.ruoyi.zhgd.domain.ProductDept;
import com.ruoyi.zhgd.domain.vo.NSysStationVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.zhgd.dto.NSysStationDto;
import com.ruoyi.zhgd.dto.SysStationDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 拌合楼Mapper接口
 *
 * @author zyb
 * @date 2023-09-06
 */
public interface NSysStationMapper extends BaseMapperPlus<NSysStationMapper, NSysStation, NSysStationVo> {

    @DataPermission({
        @DataColumn(key = "deptName", value = "sd.dept_id"),
    })
    List<NSysStationVo> sysStationList(Page page,@Param("params") Map<String, Object> params);

    List<SysStationDto> sysStationType();

    ProductDept selectByBaseCode(@Param("baseCode") String baseCode);


    SysStationDto selectByType(String type);

    /**
     * 根据code 查询拌和站
     * @param stationCode
     * @return
     */
    NSysStation getStationByCode(@Param("stationCode") String stationCode);

    List<NSysStationDto> station(@Param("id") String id);

    NSysStation selectByIdentifier(@Param("identifier") String identifier);



}
